

import { request } from '@/utils/request'
export default ({
    //马克思钥匙
    getInitKey() {
        return request("/sign/login/get", "post")
    },
    getNumber(status) {
        return request("/sign/captcha", "get", status,)
    },
    getcodeToken(code) {
        return request("/sign/authen/jss", "get", code,)
    },
    login_signin(data) {
        return request("/sign/login/signin", "post", data,)
    },
    session_fetch(data) {//初始化会话
        return request("/sign/access/session/fetch", "get", data,)
    },
    loginHistory_fetch(data) {//系统登录日志
        return request("/sign/historys/loginHistory/fetch", "get", data,)
    },
    loginAppsHistory_fetch(data) {//应用访问日志
        return request("/sign/historys/loginAppsHistory/fetch", "get", data,)
    },
    thirdLogin(oneParam, rememberMe) {
        return request("/sign/login/get?_allow_anonymous=+" + oneParam + "&remember_me=" + rememberMe)
    },
    goThirdLogin(provider) {
        return request("/sign/logon/oauth20/authorize/" + provider)
    },
    terminate(data) {
        return request("/sign/access/session/terminate", "delete", data)
    },
    oauthv20(data) {
        return request("/sign/authz/oauth/v20/approval_confirm/get/" + data, "get")
    },
    getMenuTree() {
        return request("/sign/mxkMenu/getMenuTree", "get")
    },
    approval(data) {
        return request("/sign/authz/oauth/v20/authorize/approval?user_oauth_approval=" + data.user_oauth_approval + "&client_id=" + data.clientId, "post", data)
    },
    getMessaageCode(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/produceOtp?mobile=" + data.mobile + "&state=" + data.state + "&captcha=" + data.captcha, "post")
    },
    //修改密码
    //sign/forgotpassword/setpassword
    updatePassword(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/setpassword?forgotType=mobile&userId=" + data.userId + "&username=" + data.username + "&state=" + data.state + "&password=" + data.password + "&confirmPassword=" + data.confirmPassword + "&otpCaptcha=" + data.otpCaptcha, "post")
    },


    //获取新平台token

    getNewToken() {

    },
    ///user/login
    getlogin(data) {
        // sign/forgotpassword/produceOtp
        return request("/sign/user/login", "post", data)
    },
    //获取树节点菜单
    getNewTreeMenus() {
        return request("/sign/jzg-new-menu/getJzGMenuTree", "get")
    },
    getJssGMenuTree() {
        return request("/sign/jssXtAppmenu/getJssGMenuTree", "get")
    },

    getJssSq(data) {
        return request("/sign/jssStuYd/getJssSq", "get", data)
    },
    getJssTHuiSH(data) {
        return request("/sign/jssStuYd/getJssTHuiSH", "get", data)
    },
    getJssSqEditLoad(data) {
        return request("/sign/jssStuYd/getJssSqEditLoad", "get", data)
    },

    getTeacherCoount(data) {
        return request("/sign/jssStuGagzjl/getTeacherCoount", "get", data)
    },
    getCountInfo(data) {
        return request("/sign/tjJssCount/getCountInfo", "get", data)
    },
    getLoadXq() {
        return request("/sign/tjJssCount/getLoadXq", "get")
    },
    getLoadDataFilter() {
        return request("/sign/jssXtUserlist/getLoadDataFilter", "get")
    },
    getTeacherLoadData(data) {
        return request("/sign/jssXtUserlist/getTeacherLoadData", "get", data)
    },
    getGwztStart(data) {
        return request("/sign/jssXtUserlist/getGwztStart", "get", data)
    },
    saveUser(data) {
        return request("/sign/jssXtUserlist/saveUser", "post", data)
    },
    getGwztStart(data) {
        return request("/sign/jssXtUserlist/getGwztStart", "get", data)
    },
    deleteUser(id) {
        return request("/sign/jssXtUserlist/deleteUser/" + id, "post")
    },
    updateJssSq(data) {
        return request("/sign/jssStuJbqk/updateJssSq", "post", data)
    },
    handleJssSHNoConsentApi(data) {
        return request("/sign/jssStuYd/handleJssSHNoConsentApi", "post", data)
    },
    handleJssSHConsentApi(data) {
        return request("/sign/jssStuYd/handleJssSHConsentApi", "post", data)
    },



    getTeacherCountLoadDataIsXq() {
        return request("/sign/jssStuGagzjl/getTeacherCountLoadDataIsXq", "get")
    },
    getTeacherCountLoadDataIsTeacher(data) {
        return request("/sign/jssStuGagzjl/getTeacherCountLoadDataIsTeacher", "get", data)
    },
    getTeacherCountLoadDataIsXqDm() {
        return request("/sign/jssStuGagzjl/getTeacherCountLoadDataIsXqDm", "get")
    },
    getUserList2(data) {
        return request("/sign/jssXtUserlist/getUserList", "get", data)
    },

    getJssQd(data) {
        return request("/sign/jssStuJbqk/getJssQd", "get", data)
    },
    ///jssStuJbqk/getJssCzCount
    getJssCzCount(data) {
        return request("/sign/jssStuJbqk/getJssCzCount", "get", data)
    },
    ///jssStuJbqk/getJssZSJL
    getJssZSJL(data) {
        return request("/sign/jssStuJbqk/getJssZSJL", "get", data)
    },
    getJssCzCountEdit(data) {
        return request("/sign/jssStuJbqk/getJssCzCountEdit", "get", data)
    },
    getJssZSJLEdit(data) {
        return request("/sign/jssStuJbqk/getJssZSJLEdit", "get", data)
    },
    getTeacherCountEdit(data) {
        return request("/sign/jssStuGagzjl/getTeacherCountEdit", "get", data)
    },
    ///jssStuJbqk/getJssQd
    ///jssXtUserlist/getUserList?current=1&size=9999999
    ///tjJssCount/getCountInfo
    ///jssStuGagzjl/getTeacherCoount
    ///jssXtAppmenu/getJssGMenuTree
    //  //jssStuYd/getJssSq?current=1&size=100

    //获取系统可用权限
    getUserPermissionInfo() {
        return request("/sign/jzg-new-menu/getUserPermissionInfo", "get")
    },
    //在岗教师
    //  //t-jzg/getOnGuardFaculty
    getOnGuardFaculty(data) {
        return request("/sign/t-jzg/getOnGuardFaculty", "get", data)
    },
    //获取教职工详情
    ///t-jzg/getOnGuardFacultyInfo
    getOnGuardFacultyInfo(data) {
        return request("/sign/t-jzg/getOnGuardFacultyInfo", "get", data)
    },
    //审查身份证
    ///t-jzg/examineCard
    examineCard(data) {
        return request("/sign/t-jzg/examineCard", "post", data)
    },
    //获取教职工初始数据///t-jzg/getFacultyinitial
    getFacultyinitial(data) {
        return request("/sign/t-jzg/getFacultyinitial", "get", data)
    },
    //新增教职工 ///t-jzg/saveFaculty
    saveFaculty(data) {
        return request("/sign/t-jzg/saveFaculty", "post", data)
    },
    //修改身份证 ///t-jzg/updateFacultyId
    updateFacultyId(data) {
        return request("/sign/t-jzg/updateFacultyId", "post", data)
    },

    ///t-jzg/moveFacultyList 调动
    moveFacultyList(data) {
        return request("/sign/t-jzg/moveFacultyList", "get", data)
    },
    moveSchoolFacultyList(data) {
        return request("/sign/t-jzg/moveSchoolFacultyList", "get", data)
    },
    //moveSchoolFacultyList

    ///t-jzg/moveFaculty
    moveFaculty(data) {
        return request("/sign/t-jzg/moveFaculty", "post", data)
    },
    //  //t-jzg/moveFacultyConsent 同意教职工
    moveFacultyConsent(data) {
        return request("/sign/t-jzg/moveFacultyConsent", "post", data)
    },

    //获取系统用户///t-jzg/getUserList
    getUserList(data) {
        return request("/sign/t-jzg/getUserList", "get", data)
    },
    saveUserList(data) {
        return request("/sign/t-jzg/saveUserList", "post", data)
    },
    removeUerList(data) {
        return request("/sign/t-jzg/removeUerList", "post", data)
    },
    ///t-jzg/removeUerList

    // //t-jzg/saveUserList

    JssSqSaveLoadNj() {
        return request("/sign/jssStuYd/JssSqSaveLoadNj", "get")
    },
    JssSqSaveLoadBj(data) {
        return request("/sign/jssStuYd/JssSqSaveLoadBj", "get", data)
    },
    JssSqSaveLoad(data) {
        return request("/sign/jssStuYd/JssSqSaveLoad", "get", data)
    },
    jssTHSq(data) {
        return request("/sign/jssStuYd/jssTHSq", "post", data)
    },
    addJssJsSQ(data) {
        return request("/sign/jssStuYd/addJssJsSQ", "post", data)
    },
    JssSqSelect(data) {
        return request("/sign/jssStuYd/JssSqSelect", "get", data)
    },

    jssTHaddSelectFilterByNj() {
        return request("/sign/jssStuYd/jssTHaddSelectFilterByNj", "get")
    },
    jssTHaddSelectFilterByBj(data) {
        return request("/sign/jssStuYd/jssTHaddSelectFilterByBj", "get", data)
    },
    jssTH_AddSelectData(data) {
        return request("/sign/jssStuYd/jssTH_AddSelectData", "get", data)
    },
    jssTHListData(data) {
        return request("/sign/jssStuYd/jssTHListData", "get", data)
    },
    jssTHListDataFilerXqdmLoad() {
        return request("/sign/jssStuYd/jssTHListDataFilerXqdmLoad", "get")
    },
    JssSqSelectFilerXqdmLoad() {
        return request("/sign/jssStuYd/JssSqSelectFilerXqdmLoad", "get")
    },

    getStuAndJiaQkFilterByXqdm() {
        return request("/sign/jssStuJbqk/getStuAndJiaQkFilterByXqdm", "get")
    },
    getStuAndJiaQkFilterByNj(data) {
        return request("/sign/jssStuJbqk/getStuAndJiaQkFilterByNj", "get", data)
    },
    getStuAndJiaQkFilterByBj(data) {
        return request("/sign/jssStuJbqk/getStuAndJiaQkFilterByBj", "get", data)
    },
    getStuAndJiaQk(data) {
        return request("/sign/jssStuJbqk/getStuAndJiaQk", "get", data)
    },
    updateStuAndJiaTingQkLoad(data) {
        return request("/sign/jssStuJbqk/updateStuAndJiaTingQkLoad", "get", data)
    },
    updateStuAndJiaTingQk(data) {
        return request("/sign/jssStuJbqk/updateStuAndJiaTingQk", "post", data)
    },

    getJiaoYuZhidaoJilvFilterXqdm(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilvFilterXqdm", "get", data)
    },
    getJiaoYuZhidaoJilvFilterNj(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilvFilterNj", "get", data)
    },
    getJiaoYuZhidaoJilvFilterBj(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilvFilterBj", "get", data)
    },
    getJiaoYuZhidaoJilvFilterStu(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilvFilterStu", "get", data)
    },
    getJiaoYuZhidaoJilSaveLoad(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilSaveLoad", "get", data)
    },
    addJiaoYuZhidaoJilSaveOrUpdate(data) {
        return request("/sign/jssStuGagzjl/addJiaoYuZhidaoJilSaveOrUpdate", "post", data)
    },
    getJiaoYuZhidaoJilv(data) {
        return request("/sign/jssStuGagzjl/getJiaoYuZhidaoJilv", "get", data)
    },
    removeJssSQ(data) {
        return request("/sign/jssStuYd/removeJssSQ?id=" + data.id, "post")
    },





})
